home *** CD-ROM | disk | FTP | other *** search
- property bugx, bugy, bodychan, bodylist, lipchan, bugbody, buglips, bugsayit, bugsound, bugtempo, hypno, bugtext, mouseout, fluttercount
-
- on birth me, lchan, lipset
- set bugx to the locH of sprite lchan
- set bugy to the locV of sprite lchan
- set lipchan to lchan
- puppetSprite(lchan, 1)
- set buglips to lipset
- set fluttercount to 1
- set mouseout to 1
- return me
- end
-
- on sayit me
- grabbuggy(me)
- if the number of cast bugsound < 1 then
- exit
- end if
- set soundtime to the size of cast bugsound / 183.0
- puppetSound(bugsound)
- updateStage()
- set stime to the timer
- repeat while the timer < (soundtime + stime + 20)
- set dtime to the timer - stime
- if dtime < (soundtime - 20) then
- set the castNum of sprite lipchan to getAt(buglips, random(4))
- else
- set the castNum of sprite lipchan to getAt(buglips, 1)
- end if
- updateStage()
- mydelay(5)
- if the mouseDown and (mouseout = 1) then
- set the castNum of sprite lipchan to getAt(buglips, 1)
- exit
- end if
- end repeat
- set the castNum of sprite lipchan to getAt(buglips, 1)
- releasebuggy(me)
- end
-
- on releasebuggy me
- puppetSprite(lipchan, 0)
- set hypno to 0
- end
-
- on grabbuggy me
- puppetSprite(lipchan, 1)
- set the castNum of sprite lipchan to getAt(buglips, 1)
- set hypno to 1
- end
-